﻿@model SportClubMvc.Model.SportsClubClasses.MemberModel

@using (Html.BeginForm("Add", "Skate", new { @class = "form-horizontal" }))
{
    @Html.ValidationSummary(true)
    @Html.HiddenFor(model => model.Id)
    <div class="control-group">
        <div class="control-label">@Html.LabelFor(model => model.Name)</div>
        <div class="controls">
            @Html.TextBoxFor(x => x.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>
    </div>
    <div class="control-group">
        <div class="control-label">@Html.LabelFor(model => model.Gender)</div>
        <div class="controls">
            @Html.DropDownListFor(x => x.Gender, new SelectList(new[] { "Male", "Female" }))
        </div>
    </div>@*
        <div class="control-group">
            <div class="control-label">@Html.LabelFor(model => model.Biography)</div>
            <div class="controls">
                @Html.TextAreaFor(model => model.Biography)
                @Html.ValidationMessageFor(model => model.Biography)
            </div>
        </div>*@
    <div class="control-group">
        <div class="control-label">
            @Html.LabelFor(model => model.SkaterClass)
        </div>
        <div class="controls">
            @Html.DropDownListFor(x => x.SkaterClass, new SelectList(Model.SkateClasses, "Id","Text"))
            @*@Html.DropDownListFor(x => x.SkaterClass, new SelectList(new[]{"Junior A","Junior B", "Junior C", "12 år", "11 år", "10 år", "Rekrutter"} ))*@
        </div>
    </div>
    <div class="control-group">
        <div class="control-label">
            @Html.LabelFor(model => model.Birthdate)
        </div>
        <div class="controls">
            @Html.EditorFor(model => model.Birthdate)
            @Html.ValidationMessageFor(model => model.Birthdate)
        </div>
    </div>
    <div class="button">
        <p>
            <button type="submit">&nbsp;Legg til</button>
            <button data-dismiss="modal" type="button">&nbsp;Avbryt</button>
        </p>
    </div>
    
}



